|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.boaframework.NegotiationSession
public class NegotiationSession
This is a class which manages all the negotiation session pertinent information to a single agent.
| Field Summary | |
|---|---|
protected Domain |
domain
Reference to the negotiation domain. |
protected BidHistory |
opponentBidHistory
History of bids made by the opponent. |
protected OutcomeSpace |
outcomeSpace
Optional outcomespace which should be set manually. |
protected BidHistory |
ownBidHistory
History of bids made by the agent. |
protected Timeline |
timeline
Reference to the timeline. |
protected UtilitySpace |
utilitySpace
Reference to the agent's preference profile for the domain. |
| Constructor Summary | |
|---|---|
protected |
NegotiationSession()
Special constructor used by the NegotiationSessionWrapper. |
|
NegotiationSession(SessionData sessionData,
UtilitySpace utilitySpace,
Timeline timeline)
Create a negotiation session which is used to keep track of the negotiation state. |
|
NegotiationSession(SessionData sessionData,
UtilitySpace utilitySpace,
Timeline timeline,
OutcomeSpace outcomeSpace)
Create a negotiation session which is used to keep track of the negotiation state. |
| Method Summary | |
|---|---|
java.io.Serializable |
getData(ComponentsEnum component)
Method used to load the data saved by a component. |
double |
getDiscountedUtility(Bid bid,
double time)
Returns the discounted utility of a bid given the bid and the time at which it was offered. |
double |
getDiscountFactor()
Returns the discount factor of the utilityspace. |
Domain |
getDomain()
Returns the negotiation domain. |
java.util.ArrayList<Issue> |
getIssues()
|
BidDetails |
getMaxBidinDomain()
Returns the best bid in the domain. |
BidDetails |
getMinBidinDomain()
Returns the worst bid in the domain. |
BidHistory |
getOpponentBidHistory()
Returns the bidding history of the opponent. |
OutcomeSpace |
getOutcomeSpace()
Returns the space of possible outcomes in the domain. |
BidHistory |
getOwnBidHistory()
Returns the bidding history of the agent. |
SessionData |
getSessionData()
|
double |
getTime()
Returns the normalized time (t = [0,1]) |
Timeline |
getTimeline()
|
UtilitySpace |
getUtilitySpace()
Returns the utilityspace of the agent. |
void |
setData(ComponentsEnum component,
java.io.Serializable data)
Method used o store the data of a component. |
void |
setOutcomeSpace(OutcomeSpace outcomeSpace)
Method used to set the outcomespace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OutcomeSpace outcomeSpace
protected BidHistory opponentBidHistory
protected BidHistory ownBidHistory
protected Domain domain
protected UtilitySpace utilitySpace
protected Timeline timeline
| Constructor Detail |
|---|
protected NegotiationSession()
public NegotiationSession(SessionData sessionData,
UtilitySpace utilitySpace,
Timeline timeline)
utilitySpace - of the agent.timeline - of the current negotiation.
public NegotiationSession(SessionData sessionData,
UtilitySpace utilitySpace,
Timeline timeline,
OutcomeSpace outcomeSpace)
utilitySpace - of the agent.timeline - of the current negotiation.outcomeSpace - representation of the possible outcomes.| Method Detail |
|---|
public BidHistory getOpponentBidHistory()
public BidHistory getOwnBidHistory()
public double getDiscountFactor()
public java.util.ArrayList<Issue> getIssues()
public Timeline getTimeline()
public double getTime()
public Domain getDomain()
public UtilitySpace getUtilitySpace()
public OutcomeSpace getOutcomeSpace()
public void setOutcomeSpace(OutcomeSpace outcomeSpace)
outcomeSpace - to be set.public BidDetails getMaxBidinDomain()
public BidDetails getMinBidinDomain()
public void setData(ComponentsEnum component,
java.io.Serializable data)
component - from which the data is stored.data - to be stored.public java.io.Serializable getData(ComponentsEnum component)
component - from which the data is requested.
public double getDiscountedUtility(Bid bid,
double time)
bid - which discount utility is requested.time - at which the bid was offered.
public SessionData getSessionData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||